package com.baizhi.shane.shane.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel(description = "用户管理查询DTO")
@Data
public class UserManagerOutDTO {
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "电子邮箱")
    private String email;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "头像URL")
    private String imageUrl;

    @ApiModelProperty(value = "真实姓名")
    private String realname;

    @ApiModelProperty(value = "用户状态")
    private Integer status;

    @ApiModelProperty(value = "提问数量")
    private Long questionCount;

    @ApiModelProperty(value = "回答数量")
    private Long answerCount;

    @ApiModelProperty(value = "文章数量")
    private Long essayCount;

    @ApiModelProperty(value = "是否管理员")
    private Integer isAdmin;
}
